package com.gzy.cbrsystem.shimian.action;

import com.gzy.cbrsystem.shimian.dao.ShimianMjjy;
import com.gzy.cbrsystem.shimian.service.CaseReasoning;
import com.opensymphony.xwork2.ActionSupport;

public class FindShimianMjjyById extends ActionSupport {
	protected String zhuanjiaId;
	protected CaseReasoning caseReasoning;
	
	protected ShimianMjjy shimianMjjy;
	public String getZhuanjiaId() {
		return zhuanjiaId;
	}

	public void setZhuanjiaId(String zhuanjiaId) {
		this.zhuanjiaId = zhuanjiaId;
	}
	
	
	
	public void setShimianMjjy(ShimianMjjy shimianMjjy) {
		this.shimianMjjy = shimianMjjy;
	}

	public ShimianMjjy getShimianMjjy() {
			return this.shimianMjjy;
	}
	public void setCaseReasoning(CaseReasoning caseReasoning) {
		this.caseReasoning = caseReasoning;
	}

	public CaseReasoning getCaseReasoning() {
		return this.caseReasoning;
	}
	public String execute() throws Exception {
		ShimianMjjy result=this.caseReasoning.findShimianMjjyByID(this.zhuanjiaId);
//		if(result == null) return ERROR;
		this.setShimianMjjy(result);
		return SUCCESS;
	}
}
